<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Article extends Model
{
    protected $table = 'article';

    public function getType()
    {
        return $this->belongsTo('App\ArticleType', 'type_id', 'id');
    }
}
